﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ProgNetComponentsDx.Options;

namespace Lottomat
{
    public partial class Form1 : XtraForm
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void bbiWyglad_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (ProgNetComponentsDx.Forms.FormSkinChooser.ShowSkinChooserDialog() == System.Windows.Forms.DialogResult.OK)
            {
                OptionCache.SetOptionValue(Init.InitFormOptionNames.Wyglad.Skorka, LookAndFeel.ActiveSkinName, true);
                OptionCache.SetOptionValue(Init.InitFormOptionNames.Wyglad.Styl, LookAndFeel.ActiveStyle.ToString(), true);
            }
        }

        private void bbiLista_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            mdiHelper1.GetMdiChild<Losowania.FormLosowania>();
        }
    }
}
